package aop_anno;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
@Aspect
public class LoggingBeforeAdvice {
	
	@Before("execution(* sayHelloBefore())")
	public Object logBefore(JoinPoint point) throws Throwable{
		// joinpoint 인 sayHello() 가 실행이 되기전 해야할 일들
		String methodName = point.getSignature().getName();
		
		System.out.println(methodName + "is calling.....");
		
		
		return null;
	};
}
